<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章列表页</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
  <div class="list_border">
    <div class="tools">
      <div style="margin: 0 0 0 2px;">
        <p> 操作</p>
        <a class="button_add" title="添加管理员" href="/index.php?c=admin&a=sysconfig&mod=adminauth&act=add"/>添加管理员</a>
      </div>
    </div>
    <div class="box">
      <table id="DataList1" cellspacing="0" border="0" style="width: 100%; border-collapse: collapse;">
        <tr>
          <td><{foreach from=$res item=datil key=id}>
            <div class="box2">
            <form name="form1" method="post"  id="form1" action="/index.php?c=admin&a=sysconfig&mod=adminauth&act=update&id=<{$datil.id}>">
              <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; line-height: 30px">
                <tr>
                  <th style="text-align: center; width: 16%">账号：<{$datil.username}></th>
                  <td align="left" style="width: 16%"><input id="a_1" type="checkbox" name="a_1"
                                                <{if $datil.auth.0==1}>checked="checked"<{/if}> />
                    <label for="a_1">系统设置</label></td>
                  <td align="left" style="width: 16%"><input id="a_2" type="checkbox" name="a_2"
                                                <{if $datil.auth.1==1}>checked="checked"<{/if}> />
                    文章管理</td>
                  <td align="left" style="width: 16%"><input id="a_3" type="checkbox" name="a_3"
                                                <{if $datil.auth.2==1}>checked="checked"<{/if}> />
                    <label for="a_3">留言管理</label></td>
                  <td align="left" style="width: 16%"><input id="a_4" type="checkbox" name="a_4"
                                                <{if $datil.auth.3==1}>checked="checked"<{/if}>/>
                    <label for="a_4">其它设置</label></td>
                </tr>
                <tr>
                  <td align="left" style="text-align: center; width: 16%">(备注)姓名：<{$datil.name}></td>
                  <td align="left" style="width: 16%"></td>
                  <td align="left" style="width: 16%"></td>
                  <td colspan="2" style="text-align: right"><{if $datil.system!=1}> <input type="submit" name="SUBMIT" style="background:#FFF" value="[更新权限]"/><input type="button" name="del" class="del" alt="<{$datil.id}>" style="background:#FFF" value="[删除账号]"/><{else}>【注意：系统管理员不能修改】<{/if}></td>
                </tr>
              </table>
              </form>
            </div>
            <{/foreach}> </td>
        </tr>
      </table>
    </div>
  </div>
<script type="text/javascript">
$(function() {
	$(".button_add").boxy();	
	$(".del").click(function() {tempUrl=$(this).attr("alt"); Boxy.confirm("管理员删除后不可恢复，是否继续？", function() {window.location.href="./index.php?c=admin&a=sysconfig&mod=adminauth&act=del&id="+tempUrl}, {title: "提示信息"}); return false; });
});
</script>
</body>
</html>
